package com.yby.dome11;

public class Test {
    public static void main(String[] args) {
        Pet pet = new Cat();
        Pet pet1 = new Dog();
        Master master =new Master();
        master.feed(pet);
        pet.eat();
        master.feed(pet1);
        pet1.eat();
    }
}
